package com.wqr.pojo;

import java.util.ArrayList;
import java.util.List;

public class StoreExample {
    protected String orderByClause;

    protected boolean distinct;

    protected List<Criteria> oredCriteria;

    protected Integer pageNo = 1;

    protected Integer startRow;

    protected Integer pageSize = 10;

    protected String fields;

    public StoreExample() {
        oredCriteria = new ArrayList<Criteria>();
    }

    public void setOrderByClause(String orderByClause) {
        this.orderByClause = orderByClause;
    }

    public String getOrderByClause() {
        return orderByClause;
    }

    public void setDistinct(boolean distinct) {
        this.distinct = distinct;
    }

    public boolean isDistinct() {
        return distinct;
    }

    public List<Criteria> getOredCriteria() {
        return oredCriteria;
    }

    public void or(Criteria criteria) {
        oredCriteria.add(criteria);
    }

    public Criteria or() {
        Criteria criteria = createCriteriaInternal();
        oredCriteria.add(criteria);
        return criteria;
    }

    public Criteria createCriteria() {
        Criteria criteria = createCriteriaInternal();
        if (oredCriteria.size() == 0) {
            oredCriteria.add(criteria);
        }
        return criteria;
    }

    protected Criteria createCriteriaInternal() {
        Criteria criteria = new Criteria();
        return criteria;
    }

    public void clear() {
        oredCriteria.clear();
        orderByClause = null;
        distinct = false;
    }

    public void setPageNo(Integer pageNo) {
        this.pageNo=pageNo;
        this.startRow = (pageNo-1)*this.pageSize;
    }

    public Integer getPageNo() {
        return pageNo;
    }

    public void setStartRow(Integer startRow) {
        this.startRow=startRow;
    }

    public Integer getStartRow() {
        return startRow;
    }

    public void setPageSize(Integer pageSize) {
        this.pageSize=pageSize;
        this.startRow = (pageNo-1)*this.pageSize;
    }

    public Integer getPageSize() {
        return pageSize;
    }

    public void setFields(String fields) {
        this.fields=fields;
    }

    public String getFields() {
        return fields;
    }

    protected abstract static class GeneratedCriteria {
        protected List<Criterion> criteria;

        protected GeneratedCriteria() {
            super();
            criteria = new ArrayList<Criterion>();
        }

        public boolean isValid() {
            return criteria.size() > 0;
        }

        public List<Criterion> getAllCriteria() {
            return criteria;
        }

        public List<Criterion> getCriteria() {
            return criteria;
        }

        protected void addCriterion(String condition) {
            if (condition == null) {
                throw new RuntimeException("Value for condition cannot be null");
            }
            criteria.add(new Criterion(condition));
        }

        protected void addCriterion(String condition, Object value, String property) {
            if (value == null) {
                throw new RuntimeException("Value for " + property + " cannot be null");
            }
            criteria.add(new Criterion(condition, value));
        }

        protected void addCriterion(String condition, Object value1, Object value2, String property) {
            if (value1 == null || value2 == null) {
                throw new RuntimeException("Between values for " + property + " cannot be null");
            }
            criteria.add(new Criterion(condition, value1, value2));
        }

        public Criteria andStoreIdIsNull() {
            addCriterion("\" store_id\" is null");
            return (Criteria) this;
        }

        public Criteria andStoreIdIsNotNull() {
            addCriterion("\" store_id\" is not null");
            return (Criteria) this;
        }

        public Criteria andStoreIdEqualTo(Integer value) {
            addCriterion("\" store_id\" =", value, "storeId");
            return (Criteria) this;
        }

        public Criteria andStoreIdNotEqualTo(Integer value) {
            addCriterion("\" store_id\" <>", value, "storeId");
            return (Criteria) this;
        }

        public Criteria andStoreIdGreaterThan(Integer value) {
            addCriterion("\" store_id\" >", value, "storeId");
            return (Criteria) this;
        }

        public Criteria andStoreIdGreaterThanOrEqualTo(Integer value) {
            addCriterion("\" store_id\" >=", value, "storeId");
            return (Criteria) this;
        }

        public Criteria andStoreIdLessThan(Integer value) {
            addCriterion("\" store_id\" <", value, "storeId");
            return (Criteria) this;
        }

        public Criteria andStoreIdLessThanOrEqualTo(Integer value) {
            addCriterion("\" store_id\" <=", value, "storeId");
            return (Criteria) this;
        }

        public Criteria andStoreIdIn(List<Integer> values) {
            addCriterion("\" store_id\" in", values, "storeId");
            return (Criteria) this;
        }

        public Criteria andStoreIdNotIn(List<Integer> values) {
            addCriterion("\" store_id\" not in", values, "storeId");
            return (Criteria) this;
        }

        public Criteria andStoreIdBetween(Integer value1, Integer value2) {
            addCriterion("\" store_id\" between", value1, value2, "storeId");
            return (Criteria) this;
        }

        public Criteria andStoreIdNotBetween(Integer value1, Integer value2) {
            addCriterion("\" store_id\" not between", value1, value2, "storeId");
            return (Criteria) this;
        }

        public Criteria andStoreNameIsNull() {
            addCriterion("store_name is null");
            return (Criteria) this;
        }

        public Criteria andStoreNameIsNotNull() {
            addCriterion("store_name is not null");
            return (Criteria) this;
        }

        public Criteria andStoreNameEqualTo(String value) {
            addCriterion("store_name =", value, "storeName");
            return (Criteria) this;
        }

        public Criteria andStoreNameNotEqualTo(String value) {
            addCriterion("store_name <>", value, "storeName");
            return (Criteria) this;
        }

        public Criteria andStoreNameGreaterThan(String value) {
            addCriterion("store_name >", value, "storeName");
            return (Criteria) this;
        }

        public Criteria andStoreNameGreaterThanOrEqualTo(String value) {
            addCriterion("store_name >=", value, "storeName");
            return (Criteria) this;
        }

        public Criteria andStoreNameLessThan(String value) {
            addCriterion("store_name <", value, "storeName");
            return (Criteria) this;
        }

        public Criteria andStoreNameLessThanOrEqualTo(String value) {
            addCriterion("store_name <=", value, "storeName");
            return (Criteria) this;
        }

        public Criteria andStoreNameLike(String value) {
            addCriterion("store_name like", value, "storeName");
            return (Criteria) this;
        }

        public Criteria andStoreNameNotLike(String value) {
            addCriterion("store_name not like", value, "storeName");
            return (Criteria) this;
        }

        public Criteria andStoreNameIn(List<String> values) {
            addCriterion("store_name in", values, "storeName");
            return (Criteria) this;
        }

        public Criteria andStoreNameNotIn(List<String> values) {
            addCriterion("store_name not in", values, "storeName");
            return (Criteria) this;
        }

        public Criteria andStoreNameBetween(String value1, String value2) {
            addCriterion("store_name between", value1, value2, "storeName");
            return (Criteria) this;
        }

        public Criteria andStoreNameNotBetween(String value1, String value2) {
            addCriterion("store_name not between", value1, value2, "storeName");
            return (Criteria) this;
        }

        public Criteria andStoreAddressIsNull() {
            addCriterion("store_address is null");
            return (Criteria) this;
        }

        public Criteria andStoreAddressIsNotNull() {
            addCriterion("store_address is not null");
            return (Criteria) this;
        }

        public Criteria andStoreAddressEqualTo(String value) {
            addCriterion("store_address =", value, "storeAddress");
            return (Criteria) this;
        }

        public Criteria andStoreAddressNotEqualTo(String value) {
            addCriterion("store_address <>", value, "storeAddress");
            return (Criteria) this;
        }

        public Criteria andStoreAddressGreaterThan(String value) {
            addCriterion("store_address >", value, "storeAddress");
            return (Criteria) this;
        }

        public Criteria andStoreAddressGreaterThanOrEqualTo(String value) {
            addCriterion("store_address >=", value, "storeAddress");
            return (Criteria) this;
        }

        public Criteria andStoreAddressLessThan(String value) {
            addCriterion("store_address <", value, "storeAddress");
            return (Criteria) this;
        }

        public Criteria andStoreAddressLessThanOrEqualTo(String value) {
            addCriterion("store_address <=", value, "storeAddress");
            return (Criteria) this;
        }

        public Criteria andStoreAddressLike(String value) {
            addCriterion("store_address like", value, "storeAddress");
            return (Criteria) this;
        }

        public Criteria andStoreAddressNotLike(String value) {
            addCriterion("store_address not like", value, "storeAddress");
            return (Criteria) this;
        }

        public Criteria andStoreAddressIn(List<String> values) {
            addCriterion("store_address in", values, "storeAddress");
            return (Criteria) this;
        }

        public Criteria andStoreAddressNotIn(List<String> values) {
            addCriterion("store_address not in", values, "storeAddress");
            return (Criteria) this;
        }

        public Criteria andStoreAddressBetween(String value1, String value2) {
            addCriterion("store_address between", value1, value2, "storeAddress");
            return (Criteria) this;
        }

        public Criteria andStoreAddressNotBetween(String value1, String value2) {
            addCriterion("store_address not between", value1, value2, "storeAddress");
            return (Criteria) this;
        }

        public Criteria andStoreScoreIsNull() {
            addCriterion("store_score is null");
            return (Criteria) this;
        }

        public Criteria andStoreScoreIsNotNull() {
            addCriterion("store_score is not null");
            return (Criteria) this;
        }

        public Criteria andStoreScoreEqualTo(String value) {
            addCriterion("store_score =", value, "storeScore");
            return (Criteria) this;
        }

        public Criteria andStoreScoreNotEqualTo(String value) {
            addCriterion("store_score <>", value, "storeScore");
            return (Criteria) this;
        }

        public Criteria andStoreScoreGreaterThan(String value) {
            addCriterion("store_score >", value, "storeScore");
            return (Criteria) this;
        }

        public Criteria andStoreScoreGreaterThanOrEqualTo(String value) {
            addCriterion("store_score >=", value, "storeScore");
            return (Criteria) this;
        }

        public Criteria andStoreScoreLessThan(String value) {
            addCriterion("store_score <", value, "storeScore");
            return (Criteria) this;
        }

        public Criteria andStoreScoreLessThanOrEqualTo(String value) {
            addCriterion("store_score <=", value, "storeScore");
            return (Criteria) this;
        }

        public Criteria andStoreScoreLike(String value) {
            addCriterion("store_score like", value, "storeScore");
            return (Criteria) this;
        }

        public Criteria andStoreScoreNotLike(String value) {
            addCriterion("store_score not like", value, "storeScore");
            return (Criteria) this;
        }

        public Criteria andStoreScoreIn(List<String> values) {
            addCriterion("store_score in", values, "storeScore");
            return (Criteria) this;
        }

        public Criteria andStoreScoreNotIn(List<String> values) {
            addCriterion("store_score not in", values, "storeScore");
            return (Criteria) this;
        }

        public Criteria andStoreScoreBetween(String value1, String value2) {
            addCriterion("store_score between", value1, value2, "storeScore");
            return (Criteria) this;
        }

        public Criteria andStoreScoreNotBetween(String value1, String value2) {
            addCriterion("store_score not between", value1, value2, "storeScore");
            return (Criteria) this;
        }

        public Criteria andStorePhoneIsNull() {
            addCriterion("store_phone is null");
            return (Criteria) this;
        }

        public Criteria andStorePhoneIsNotNull() {
            addCriterion("store_phone is not null");
            return (Criteria) this;
        }

        public Criteria andStorePhoneEqualTo(String value) {
            addCriterion("store_phone =", value, "storePhone");
            return (Criteria) this;
        }

        public Criteria andStorePhoneNotEqualTo(String value) {
            addCriterion("store_phone <>", value, "storePhone");
            return (Criteria) this;
        }

        public Criteria andStorePhoneGreaterThan(String value) {
            addCriterion("store_phone >", value, "storePhone");
            return (Criteria) this;
        }

        public Criteria andStorePhoneGreaterThanOrEqualTo(String value) {
            addCriterion("store_phone >=", value, "storePhone");
            return (Criteria) this;
        }

        public Criteria andStorePhoneLessThan(String value) {
            addCriterion("store_phone <", value, "storePhone");
            return (Criteria) this;
        }

        public Criteria andStorePhoneLessThanOrEqualTo(String value) {
            addCriterion("store_phone <=", value, "storePhone");
            return (Criteria) this;
        }

        public Criteria andStorePhoneLike(String value) {
            addCriterion("store_phone like", value, "storePhone");
            return (Criteria) this;
        }

        public Criteria andStorePhoneNotLike(String value) {
            addCriterion("store_phone not like", value, "storePhone");
            return (Criteria) this;
        }

        public Criteria andStorePhoneIn(List<String> values) {
            addCriterion("store_phone in", values, "storePhone");
            return (Criteria) this;
        }

        public Criteria andStorePhoneNotIn(List<String> values) {
            addCriterion("store_phone not in", values, "storePhone");
            return (Criteria) this;
        }

        public Criteria andStorePhoneBetween(String value1, String value2) {
            addCriterion("store_phone between", value1, value2, "storePhone");
            return (Criteria) this;
        }

        public Criteria andStorePhoneNotBetween(String value1, String value2) {
            addCriterion("store_phone not between", value1, value2, "storePhone");
            return (Criteria) this;
        }

        public Criteria andStoreChargeIsNull() {
            addCriterion("store_charge is null");
            return (Criteria) this;
        }

        public Criteria andStoreChargeIsNotNull() {
            addCriterion("store_charge is not null");
            return (Criteria) this;
        }

        public Criteria andStoreChargeEqualTo(String value) {
            addCriterion("store_charge =", value, "storeCharge");
            return (Criteria) this;
        }

        public Criteria andStoreChargeNotEqualTo(String value) {
            addCriterion("store_charge <>", value, "storeCharge");
            return (Criteria) this;
        }

        public Criteria andStoreChargeGreaterThan(String value) {
            addCriterion("store_charge >", value, "storeCharge");
            return (Criteria) this;
        }

        public Criteria andStoreChargeGreaterThanOrEqualTo(String value) {
            addCriterion("store_charge >=", value, "storeCharge");
            return (Criteria) this;
        }

        public Criteria andStoreChargeLessThan(String value) {
            addCriterion("store_charge <", value, "storeCharge");
            return (Criteria) this;
        }

        public Criteria andStoreChargeLessThanOrEqualTo(String value) {
            addCriterion("store_charge <=", value, "storeCharge");
            return (Criteria) this;
        }

        public Criteria andStoreChargeLike(String value) {
            addCriterion("store_charge like", value, "storeCharge");
            return (Criteria) this;
        }

        public Criteria andStoreChargeNotLike(String value) {
            addCriterion("store_charge not like", value, "storeCharge");
            return (Criteria) this;
        }

        public Criteria andStoreChargeIn(List<String> values) {
            addCriterion("store_charge in", values, "storeCharge");
            return (Criteria) this;
        }

        public Criteria andStoreChargeNotIn(List<String> values) {
            addCriterion("store_charge not in", values, "storeCharge");
            return (Criteria) this;
        }

        public Criteria andStoreChargeBetween(String value1, String value2) {
            addCriterion("store_charge between", value1, value2, "storeCharge");
            return (Criteria) this;
        }

        public Criteria andStoreChargeNotBetween(String value1, String value2) {
            addCriterion("store_charge not between", value1, value2, "storeCharge");
            return (Criteria) this;
        }

        public Criteria andStoreGradeIsNull() {
            addCriterion("store_grade is null");
            return (Criteria) this;
        }

        public Criteria andStoreGradeIsNotNull() {
            addCriterion("store_grade is not null");
            return (Criteria) this;
        }

        public Criteria andStoreGradeEqualTo(Integer value) {
            addCriterion("store_grade =", value, "storeGrade");
            return (Criteria) this;
        }

        public Criteria andStoreGradeNotEqualTo(Integer value) {
            addCriterion("store_grade <>", value, "storeGrade");
            return (Criteria) this;
        }

        public Criteria andStoreGradeGreaterThan(Integer value) {
            addCriterion("store_grade >", value, "storeGrade");
            return (Criteria) this;
        }

        public Criteria andStoreGradeGreaterThanOrEqualTo(Integer value) {
            addCriterion("store_grade >=", value, "storeGrade");
            return (Criteria) this;
        }

        public Criteria andStoreGradeLessThan(Integer value) {
            addCriterion("store_grade <", value, "storeGrade");
            return (Criteria) this;
        }

        public Criteria andStoreGradeLessThanOrEqualTo(Integer value) {
            addCriterion("store_grade <=", value, "storeGrade");
            return (Criteria) this;
        }

        public Criteria andStoreGradeIn(List<Integer> values) {
            addCriterion("store_grade in", values, "storeGrade");
            return (Criteria) this;
        }

        public Criteria andStoreGradeNotIn(List<Integer> values) {
            addCriterion("store_grade not in", values, "storeGrade");
            return (Criteria) this;
        }

        public Criteria andStoreGradeBetween(Integer value1, Integer value2) {
            addCriterion("store_grade between", value1, value2, "storeGrade");
            return (Criteria) this;
        }

        public Criteria andStoreGradeNotBetween(Integer value1, Integer value2) {
            addCriterion("store_grade not between", value1, value2, "storeGrade");
            return (Criteria) this;
        }
    }

    public static class Criteria extends GeneratedCriteria {

        protected Criteria() {
            super();
        }
    }

    public static class Criterion {
        private String condition;

        private Object value;

        private Object secondValue;

        private boolean noValue;

        private boolean singleValue;

        private boolean betweenValue;

        private boolean listValue;

        private String typeHandler;

        public String getCondition() {
            return condition;
        }

        public Object getValue() {
            return value;
        }

        public Object getSecondValue() {
            return secondValue;
        }

        public boolean isNoValue() {
            return noValue;
        }

        public boolean isSingleValue() {
            return singleValue;
        }

        public boolean isBetweenValue() {
            return betweenValue;
        }

        public boolean isListValue() {
            return listValue;
        }

        public String getTypeHandler() {
            return typeHandler;
        }

        protected Criterion(String condition) {
            super();
            this.condition = condition;
            this.typeHandler = null;
            this.noValue = true;
        }

        protected Criterion(String condition, Object value, String typeHandler) {
            super();
            this.condition = condition;
            this.value = value;
            this.typeHandler = typeHandler;
            if (value instanceof List<?>) {
                this.listValue = true;
            } else {
                this.singleValue = true;
            }
        }

        protected Criterion(String condition, Object value) {
            this(condition, value, null);
        }

        protected Criterion(String condition, Object value, Object secondValue, String typeHandler) {
            super();
            this.condition = condition;
            this.value = value;
            this.secondValue = secondValue;
            this.typeHandler = typeHandler;
            this.betweenValue = true;
        }

        protected Criterion(String condition, Object value, Object secondValue) {
            this(condition, value, secondValue, null);
        }
    }
}